package com.czl.module_storehouse.bean;

import com.czl.module_base.bean.CompanyBean;

/**
 * @author xubin
 */
public class SupplierCompanyBean {

    private String companyAddress;
    private String companyCity;
    private String companyDistrict;
    private String companyName;
    private String companyProvince;
    private String companyShortName;
    private int companyId;
    private int companyTag;
    private String contactName;
    private String contactPhone;
    private int crmType;
    private String userId;
    private String crmCompanyId;
    private String legalPerson;
    private String organizationCode;

    public SupplierCompanyBean(CompanyBean companyBean, AddSupplierBean supplierBean, String userId, int companyId) {
        if (companyBean != null) {
            crmCompanyId = companyBean.getCompanyId();
        }
        if (supplierBean != null) {
            this.companyAddress = supplierBean.getCompanyAddress();
            this.companyCity = supplierBean.getCompanyCity();
            this.companyProvince = supplierBean.getCompanyProvince();
            this.companyDistrict = supplierBean.getCompanyDistrict();
            this.companyName = supplierBean.getCompanyName();
            this.contactName = supplierBean.getContactName();
            this.contactPhone = supplierBean.getContactPhone();
            companyTag = 6;
        }
        this.userId = userId;
        this.companyId = companyId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCrmCompanyId() {
        return crmCompanyId;
    }

    public void setCrmCompanyId(String crmCompanyId) {
        this.crmCompanyId = crmCompanyId;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public String getCompanyCity() {
        return companyCity;
    }

    public void setCompanyCity(String companyCity) {
        this.companyCity = companyCity;
    }

    public String getCompanyDistrict() {
        return companyDistrict;
    }

    public void setCompanyDistrict(String companyDistrict) {
        this.companyDistrict = companyDistrict;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyProvince() {
        return companyProvince;
    }

    public void setCompanyProvince(String companyProvince) {
        this.companyProvince = companyProvince;
    }

    public String getCompanyShortName() {
        return companyShortName;
    }

    public void setCompanyShortName(String companyShortName) {
        this.companyShortName = companyShortName;
    }

    public int getCompanyId() {
        return companyId;
    }

    public void setCompanyId(int companyId) {
        this.companyId = companyId;
    }

    public int getCompanyTag() {
        return companyTag;
    }

    public void setCompanyTag(int companyTag) {
        this.companyTag = companyTag;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public int getCrmType() {
        return crmType;
    }

    public void setCrmType(int crmType) {
        this.crmType = crmType;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public void setLegalPerson(String legalPerson) {
        this.legalPerson = legalPerson;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }
}
